#!/usr/bin/env python
# --*-- conding:utf-8 --*--
# @Time : 2024/1/27
# @Author : liangpp
# @Email : mobaicloud@163.com
# @Software : PyCharm


from carlargescreen.models import CarInfo


def get_bottomright():
    allcars = list(CarInfo.objects.all())
    carinfo_list = []
    for c in allcars:
        carinfo_dict = {}
        carinfo_dict['rank'] = c.rank
        carinfo_dict['car_img'] = c.car_img
        carinfo_dict['car_name'] = c.car_name
        carinfo_dict['brand_name'] = c.brand_name
        carinfo_dict['manufacturer'] = c.manufacturer
        carinfo_dict['price'] = c.price
        carinfo_dict['count'] = c.count
        carinfo_dict['warrantyPeriod'] = c.warrantyPeriod
        carinfo_dict['marketTime'] = c.marketTime
        carinfo_list.append(carinfo_dict)
    return carinfo_list

